{extend name="template/base" /}
{block name="style"}
<style>
.pagination { padding: 2px; float:right; +float:none; +position: absolute; +right:6px;}
.pagination ul { margin: 0; padding: 0; }
.pagination ul li { line-height: 22px; color: #AAA; display: inline !important; list-style-type: none; width: auto !important; height: auto !important; float: left; padding: 0px; margin: 0 1px !important;}
.pagination li span {font-size: 13px;  list-style-type: none; display: inline; float: left; padding: 3px 10px; margin: 0 1px 0 0; }
.pagination li a span , .pagination li a:visited span { color: #0D93BF; text-decoration: none;  cursor:pointer; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;/*Firefox\Chrome\Safari\IE9\元素圆角效果*/}
.pagination li a:hover span, .pagination li a:active span{ color: #000; background-color: #FFF;  cursor:pointer; -khtml-opacity: .9; -moz-opacity: 0.9; -moz-box-shadow:0 0 3px rgba(204, 204, 204, 0.5); -webkit-box-shadow: 0 0 3px rgba(204, 204, 204, 0.5); box-shadow: 0 0 3px rgba(204, 204, 204, 0.5);}
.pagination li span.currentpage{ color:#FFF; font-weight: bold;  background-color: #099ACF; -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;/*Firefox\Chrome\Safari\IE9\元素圆角效果*/}
</style>
{/block}
{block name="content"}
<div class="page-container">
    {include file='goods/album/form' /}
    <div class="cl pd-5 bg-1 bk-gray">
    	<span class="l">
            <a href="javascript:;" onclick="del_forever_all('{:url(\'admin/goods.album/deleteforever_class\')}')" class="btn btn-danger radius mr-5"><i class="Hui-iconfont"></i> 彻底删除</a>
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            {include file="goods/album/th" /}
            <th width="70">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            {include file="goods/album/td" /}
            <td class="f-14">
                {tp:access action='edit'}
                <a href="javascript:;" class="label label-primary radius" onclick="layer_open('编辑','{:url(\'admin/goods.album/edit\',[\'id\'=>$vo.aclass_id])}')">图片</a>
                {/tp:access}
                {tp:access action='deleteforever_class'}
                <a href="javascript:;" class="label label-danger radius" onclick="del_forever(this,'{$vo.aclass_id}','{:url(\'admin/goods.album/deleteforever_class\',[\'id\'=>$vo.aclass_id])}')">彻底删除</a>
                {/tp:access}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="pagination mb-10 mt-10" >{$page->render()}</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
function audit_class(id){
	url = "auditOK";
	data = {id:id};
	layer.confirm('审核通过吗？', {
        btn: ['确定', '取消'],
        title: '提示',
        icon: 3
    }, function () {
        $.post(url, data, function (result) {
            if (result.code == 0) {
            	parent.layer.msg(result.msg, {icon: 1, time: 2000});
                $(obj).parents("tr").fadeOut();
            } else {
                layer.alert(result.msg);
            }
            fn && fn(data);
        }, 'json')
    }, function (index) {
        layer.close(index);
    });
}
</script>
{/block}
